<table class="table table-striped table-bordered mt-3 text-center">
<thead class="table-light">
    <tr>
        <th scope="col" width="50">
            <input class="form-check-input" type="checkbox" onclick="checkall('tasklist', 'task-checkbox', $(this).prop('checked') );" />
        </th>
        <th scope="col" width="150">项目</th>
        <th scope="col">版本</th>
        <th scope="col" width="80">状态</th>
        <th scope="col" width="100">等级</th>
        <th scope="col" width="80">类型</th>
        <th scope="col" class='text-start'>标题</th>
        <th scope="col" width="150">负责人</th>
        <th scope="col" width="150">验收人</th>
        <th scope="col" width="150">品控</th>
        <th scope="col" width="200">创建</th>
    </tr>
</thead>
<tbody id="tasklist">
{{range $key, $value := .tasks}}
<tr class="priority-{{$value.Priority}} status-{{$value.Status}}">
    <th scope="row">
        <input class="form-check-input" name="task-checkbox" type="checkbox" value="{{$value.Id}}" />
    </th>
    <td>{{(index $.projects $value.Project).Name}}</td>
    <td>{{(index $.tags $value.Tag).Name}}</td>
    <td>{{(index $.props.status $value.Status).Name}}</td>
    <td>{{(index $.props.priority $value.Priority).Name}}({{$value.Level}})</td>
    <td>{{(index $.props.caty $value.Caty).Name}}</td>
    <td class='text-start'>
        <a
            class="priority-{{$value.Priority}} status-{{$value.Status}}"
            href="/task/thread/{{$value.Id}}"
            target="_blank"
        >
            #{{$value.Id}} {{$value.Title}}
        </a>
    </td>
    <td>{{(index $.users $value.Leader).Name}}</td>
    <td>{{(index $.users $value.Checker).Name}}</td>
    <td>{{(index $.users $value.Tester).Name}}</td>
    <td>{{$value.CreatedAt | formatDate}}</td>
</tr>
{{end}}

<tr>
<td scope="row" colspan="11">
{{pages .pagination "filter_result"}}
</td>
</tr>

</tbody>
</table>